home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7462 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Newbie Question : Borland Turbo C++ V.3
  5. Date: 23 Feb 1996 11:50:24 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4gk9m0$336@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe8.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Feb 22, 1996 12:08:41 in article <Newbie Question : Borland Turbo C++
  15. V.3>, 'Martyn Read <Martyn@csmltd.demon.co.uk>' wrote: 
  16.  
  17.  
  18. >Hello everybody, 
  19. >I wonder if someone can help me? 
  20. >I want to create my own libraries and, despite much reading of the  
  21. >manual I have been unable to work out how to do it. 
  22. >If there is a manual entry please point me to it, if not perhaps someone  
  23. >would be kind enough to tell me if it can be done and how to do it. 
  24. >Many thanks in advance, 
  25. >I don't subscribe to this group normally so a direct reply would be  
  26. >appreciated. 
  27. 1.  Create a header file with all the exported function  
  28. declarations (prototypes). 
  29.  
  30. 2.  Create one or more source files that contain the definitions 
  31. for the functions declared in the header.  Also define internal 
  32. library functions and whatever else you need. 
  33.  
  34. 3.  Create a project (I'm not a TC user so I don't know the 
  35. exact steps, but in BC it's Project | New).  Choose the 
  36. option that designates your project as a static library. 
  37.  
  38. 4.  Add the file(s) in step 2 to your project. 
  39.  
  40. 5.  Shift-F9 (I believe) to compile and create a library. 
  41.  
  42. Voila!  You now have a file .lib that you can link to any 
  43. compatible calling project.  Don't forget to #include 
  44. the library header file (Step 1) in all source code files 
  45. that call any of the library functions. 
  46.  
  47. -- 
  48. Pete Grant 
  49. Kalevi, Inc. 
  50. Software Engineering & development
  51.